package com.hangar.eforms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hangar.eforms.dto.FormsDataQueryDto;
import com.hangar.eforms.entity.FormsDataEntity;
import com.hangar.eforms.vo.FormsDataVo;
import org.apache.ibatis.annotations.Param;

public interface FormsDataMapper extends BaseMapper<FormsDataEntity> {
    int deleteById(Integer id);

    int insert(FormsDataEntity record);

    FormsDataEntity loadById(Integer id);

    IPage<FormsDataVo> list(Page<FormsDataVo> page, @Param("dto") FormsDataQueryDto dto);

    int update(FormsDataEntity record);
}